#include "common.h"

char* WideCharToChar(WCHAR* wstr)
{
	int needLen = WideCharToMultiByte(CP_ACP, 0, wstr, -1, NULL, 0, NULL, NULL);
	char* nameBuffer = new char[needLen];
	WideCharToMultiByte(CP_ACP, 0, wstr, -1, nameBuffer, needLen, NULL, NULL);
	return nameBuffer;
}